package com.hung.rpcsimple.consumer;

import com.hung.rpcsimple.api.IRPCHelloService;
import com.hung.rpcsimple.api.IRPCService;
import com.hung.rpcsimple.proxy.RpcProxy;

/**
 * @author Hung
 * @date 2022/9/4 1:01
 */
public class RpcConsumer {
    public static void main(String[] args) {
        IRPCHelloService rpcHelloService = RpcProxy.create(IRPCHelloService.class);
        System.out.println(rpcHelloService.hello("Hung"));

        IRPCService irpcService = RpcProxy.create(IRPCService.class);

        System.out.println(irpcService.add(10, 15));

    }
}

